<!DOCTYPE html>
<html class="content-align-center">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="<wk:tplvar name='favico'/>" type="image/x-icon">
<link rel="apple-touch-icon" href="<wk:tplvar name='touchs'/>">
<link rel="apple-touch-icon" sizes="72x72" href="<wk:tplvar name='touchm'/>">
<link rel="apple-touch-icon" sizes="114x114" href="<wk:tplvar name='touchb'/>">
<title><wk:field name='typename'/>-<wk:tplvar name='wap_name'/></title>
<link rel="stylesheet" href="__THEME__/css/theme.css" type="text/css" media="all" />
<link rel="stylesheet" href="__THEME__/css/responsive.css" type="text/css" media="all" />
<link rel="stylesheet" href="__THEME__/css/custom.css" type="text/css" media="all" />
<script type="text/javascript" src="__THEME__/js/jquery.min.js"></script>
</head>
<body class="default-type">
	<header class="menu-left main_header short_header">
        <div class="header_wrapper">
            <a href="javascript:void(0)" class="header_toggler"></a>
            <div class="logo_wrapper">
                <a href="__ROOT__" class="logo"><img src="<wk:tplvar name='logo'/>" alt="" class="logo_def"><img src="<wk:tplvar name='rlogo'/>" alt="" class="logo_retina"></a>
            </div>
	       <wk:include filename='header.htm'/>            
            <div class="footer">
                <section class="socials">
                    <ul class="socials_list">
                       
                    </ul>
                </section>
                <section class="copyright">
                    <wk:global name="cfg_powerby"/> 
                </section>
            </div>
            <div class="clear"></div>
        </div>
    </header>
    
    <div class="main_wrapper">
        <div class="content_wrapper">
        	<div class="container">
                <div class="content_block row no-sidebar">
                    <div class="fl-container span12">
                        <div class="row">
                            <div class="posts-block span12">
                                <div class="contentarea">
                                    <div class="row">
                                        <wk:arclist getall='1' row='1'>
                                        <?php 
                                            $id = $_field['id'];
                                            $sql = "SELECT * FROM `".C('DB_PREFIX')."addondiyintro` WHERE `id`='$id'";
                                            $query = mysql_query($sql);
                                            while($row=mysql_fetch_array($query)){
                                            $redirecturl = $row[redirecturl];
                                            $body = $row[body];
                                            $pic = $row[pic];
                                        }
                                        ?>                                        
                                    	<div class="span6 first-module module_number_1 module_cont  module_text_area">
                                        	<div class="bg_title"><h2 class="headInModule"><field name='title' /></h2></div>
                                            <div class="module_content">
                                                <?php echo $body; ?>
                                            </div>
                                        </div><!-- .module_cont -->
                                        <div class="span6  module_number_2 module_cont  module_text_area">
                                            <div class="module_content">
                                                <p><img src="<?php echo $pic; ?>" alt="" /></p>
                                            </div>
                                        </div><!-- .module_cont -->
                                        </wk:arclist>
                                    </div>
                            	</div>
                            </div>
                    	</div>
                	</div>            
            	</div>      
            </div>
        </div>
        <div class="global_center_trigger"></div>            
    </div><!-- .main_wrapper --> 
            
	<div class="custom_bg img_bg" style="background-image: url(<wk:field name='litpic'/>)"></div>
	<script type="text/javascript" src="__THEME__/js/jquery-ui.min.js"></script>    
    <script type="text/javascript" src="__THEME__/js/modules.js"></script>
	<script type="text/javascript" src="__THEME__/js/theme.js"></script>
</body>
</html>